#include "FluVirus.h"
#include <stdlib.h>
void FluVirus::DoBorn()
{
	LoadDNAInformation();
	this->m_color = (((rand() % 2)) ? 0x0000FF : 0xFF0000);

}
FluVirus* FluVirus::DoClone()const
{
	return new FluVirus(*this);
}
void FluVirus::DoDie()
{
	delete this;
}
void FluVirus::InitResistance()
{
	if(this->m_color == 0x0000FF)
	{
		this->m_resistance = rand()%20 + 11;

	}
	else
	{
		this->m_resistance = rand()%15 + 11;

	}
}